package cn.mingfancloud.基础知识.循环语句;

public class AdditiveFor {
    public static void main(String[] args) {
        int sum = 0;
        int i;
        for (i = 1; i <= 100; i++) { // for循环语句
            sum += i;
        }
        System.out.println("the result :" + sum);
    }
}
